package com.level2app.ui.welcome;

import android.os.Bundle;

import com.level2app.base.BaseActivity;
import com.level2app.base.BaseViewModel;
import com.level2app.databinding.ActivityScanFinishBinding;
import com.level2app.ui.login.EmailLoginActivity;
import com.level2app.utils.JumpIntent;

/**
 * 输入或扫描Code成功
 */
public class ScanFinishActivity extends BaseActivity<ActivityScanFinishBinding, BaseViewModel> {


    @Override
    protected BaseViewModel bindModel() {
        return getViewModel(this, BaseViewModel.class);
    }

    @Override
    protected void initInject() {
        getActivityComponent().inject(this);
    }

    @Override
    protected void initData() {
        initTitleBar();
    }

    @Override
    protected void initClick() {
        super.initClick();
        viewModel.onDelayClick(binding.continueBtn, o -> {
            Bundle bundle = new Bundle();
            bundle.putInt("source", 1);
            JumpIntent.jump(this, EmailLoginActivity.class, bundle);
        });
    }
}